<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.loge.domain.LogeRoomChargeitem"  table="loge_room_chargeitem">
        <id name="id" column="id" type="integer">
            <generator class="native">
                   <param name="sequence">LOGE_ROOM_CHARGEITEM_ID_SEQ</param>
            </generator>
        </id>
        <property name="begincount" type="double">
            <column name="begincount"/>
         </property>
        <property name="endcount" type="double">
            <column name="endcount"/>
        </property>
        <property name="counts" type="double">
            <column name="counts"/>
        </property>
        <property name="charge" type="double">
            <column name="charge"/>
        </property>
        <many-to-one name="logeRoomCharge" class="cn.firstsoft.modules.loge.domain.LogeRoomCharge" fetch="select">
          <column name="charge_id"/>
        </many-to-one>
        <many-to-one name="logeRule" class="cn.firstsoft.modules.loge.domain.LogeRule" fetch="select">
        <column name="rule_id"/>
        </many-to-one>
    </class>
</hibernate-mapping>
